package app.web.hcartoon.collect;

import cn.lily.com.exception.YaconException;
import cn.lily.web.page.BusinessPage;
import cn.lily.web.widget.page.TPanel;
/**
 * 动漫明细主页
 * @author JiaJ
 * @date 2018年2月5日
 *
 */
public class HCartoonMainEdit extends BusinessPage {

	@Override
	public void page_onLoad() throws YaconException {
		
		 TPanel HCartoonMainPanel = Panel("HCartoonMainPanel");
		 HCartoonMainPanel.creatToolbar().setBarText("里番信息表编辑");

		 Form("HCartoonMainForm").setDictTable("LEO_GALCAN_INFO");
		 
		 //动漫名称
		 Form("HCartoonMainForm").createFormCell(Input("CAN_NAME"));
		 Form("HCartoonMainForm").createFormRow();		
		 
		 //日文名
		 Form("HCartoonMainForm").createFormCell(Input("CAN_NAM_ENG"));
		 Form("HCartoonMainForm").createFormRow();

		 //英文名
		 Form("HCartoonMainForm").createFormCell(Input("CAN_NAM_JAP"));
		 Form("HCartoonMainForm").createFormRow();
		 
		 //动漫首字母
		 Form("HCartoonMainForm").createFormCell(Input("CAN_FIRST"));
		 Form("HCartoonMainForm").createFormRow();
		 
		 //动漫简介
		 Form("HCartoonMainForm").createFormCell(TextArea("CAN_DEMO").setAreaRow(10));
		 Form("HCartoonMainForm").createFormRow();
		 
		 HCartoonMainPanel.createPanelCell(Form("HCartoonMainForm"));
		 HCartoonMainPanel.creatStatusBar().addElement(Button("save"));
		 HCartoonMainPanel.getStatusBar().addElement(Button("exit"));
		 getPage().addElement(HCartoonMainPanel);
		
	}

}
